public class ADSB_Sentence_Factory implements ADSB_Sentence_Factory_Interface
{
	// connect to the following URI
	String urlString = "http://flugmon-it.hs-esslingen.de/subscribe/ads.sentence";
	Senser server = new Senser(urlString);

	// method to create sentences for the ADSB_Sentence class
	public String fromWebdisJson()
	{
		String sentence;

		// ask the server for new information
		while (true)
		{
			sentence = server.getSentence();

			// delete the first line cause of connection accept
			if (sentence.length() <= 50)
			{

			}

			// return all lines with information
			else
			{
				return sentence.substring(40, 93);
			}

		}

	}
}
